Repository navigation
Remove unused crate dependencies - #586
Conversation
Drop dependencies that are declared in crate manifests but never referenced by the crate's sources, tests, or features, and update Cargo.lock accordingly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Test Coverage Report (Linux)Result: ✅ Within regression budget
|
Performance Report (Linux)Result: ✅ Within regression budgets
|
Performance Report (macOS ARM64)Result: ✅ Within regression budgets
|
Performance Report (macOS)Result: ✅ Within regression budgets
|
Test Coverage Report (Windows)Result: ✅ Within regression budget
|
Performance Report (Windows)Result: ✅ Within regression budgets
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 597235d1-bab7-440a-a583-e790ea7f1962 (cherry picked from commit f4432bd)
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the dependency cleanup and Windows CI setup changes.
No open issues 🎉
What changed in this PR
This PR removes unused dependencies from PET’s Rust workspace and updates Windows CI to install pyenv-win without the failing PowerShell archive-extraction step.
Changes:
- Removes unused dependencies from 17 crate manifests and updates the corresponding
Cargo.lockdependency edges. - Replaces the pyenv-win installer with a shallow Git clone in three Windows workflows, with explicit clone-failure handling.
- Adds a Windows workflow test covering script-byte preservation, environment setup, and clone failures.
| File | Description |
|---|---|
scripts/tests/test_quality_workflows.py |
Tests successful and failed Windows pyenv-win setup. |
crates/pet-windows-registry/Cargo.toml |
Removes unused Python utilities, lazy_static, and regex dependencies. |
crates/pet-virtualenvwrapper/Cargo.toml |
Removes unused log dependency. |
crates/pet-virtualenv/Cargo.toml |
Removes unused filesystem and log dependencies. |
crates/pet-venv/Cargo.toml |
Removes unused virtualenv and log dependencies. |
crates/pet-telemetry/Cargo.toml |
Removes unused Python utilities and env_logger dependencies. |
crates/pet-pyenv/Cargo.toml |
Removes unused serde dependency. |
crates/pet-poetry/Cargo.toml |
Removes unused serialization and reporter dependencies. |
crates/pet-pixi/Cargo.toml |
Removes unused log dependency. |
crates/pet-pipenv/Cargo.toml |
Removes unused virtualenv dependency. |
crates/pet-mac-xcode/Cargo.toml |
Removes unused log dependency. |
crates/pet-mac-python-org/Cargo.toml |
Removes unused log dependency. |
crates/pet-mac-commandlinetools/Cargo.toml |
Removes unused log dependency. |
crates/pet-linux-global-python/Cargo.toml |
Removes unused log dependency. |
crates/pet-jsonrpc/Cargo.toml |
Removes unused core and env_logger dependencies. |
crates/pet-homebrew/Cargo.toml |
Removes unused serde and serde_json dependencies. |
crates/pet-global-virtualenvs/Cargo.toml |
Removes unused core, virtualenv, and log dependencies. |
crates/pet-env-var-path/Cargo.toml |
Removes six unused dependencies. |
Cargo.lock |
Drops dependency edges removed from the manifests. |
.github/workflows/pr-check.yml |
Installs pyenv-win through a shallow clone with failure handling. |
.github/workflows/coverage.yml |
Applies the clone-based Windows setup to coverage jobs. |
.github/workflows/coverage-baseline.yml |
Applies the clone-based Windows setup to baseline jobs. |
Review effort: Max
Removes dependencies that are declared in crate manifests but never used by that crate's code, tests, or features. Cargo.lock drops the corresponding dependency edges.
The Windows CI jobs now install pyenv-win with a shallow
git cloneof its repository instead of runninginstall-pyenv-win.ps1, whose archive extraction fails on the current runner PowerShell. A workflow test covers the new setup step. This change is cherry-picked from #585.